From: Jasper St. Pierre Date: Wed, 11 Sep 2013 18:21:29 +0000 (-0400) Subject: workspacesView: Don't do any special handling for item-dragging X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3128 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8097cbbbe32a786f2fa12d061d90cd954fb5f645;p=gnome-shell.git workspacesView: Don't do any special handling for item-dragging The code here really only cares about new windows. --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 085d16223..90dce1ad2 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -91,10 +91,6 @@ const WorkspacesView = new Lang.Class({ global.window_manager.connect('switch-workspace', Lang.bind(this, this._activeWorkspaceChanged)); - this._itemDragBeginId = Main.overview.connect('item-drag-begin', - Lang.bind(this, this._dragBegin)); - this._itemDragEndId = Main.overview.connect('item-drag-end', - Lang.bind(this, this._dragEnd)); this._windowDragBeginId = Main.overview.connect('window-drag-begin', Lang.bind(this, this._dragBegin)); this._windowDragEndId = Main.overview.connect('window-drag-end', @@ -288,14 +284,6 @@ const WorkspacesView = new Lang.Class({ if (this._inDrag) this._dragEnd(); - if (this._itemDragBeginId > 0) { - Main.overview.disconnect(this._itemDragBeginId); - this._itemDragBeginId = 0; - } - if (this._itemDragEndId > 0) { - Main.overview.disconnect(this._itemDragEndId); - this._itemDragEndId = 0; - } if (this._windowDragBeginId > 0) { Main.overview.disconnect(this._windowDragBeginId); this._windowDragBeginId = 0;